package dfbz.com.service.impl;

import dfbz.com.dao.DeptDao;
import dfbz.com.model.Dept;
import dfbz.com.service.DeptService;

import java.util.List;
import java.util.Map;

public class DeptServiceImpl implements DeptService {
    private DeptDao deptDao = new DeptDao();


    @Override
    public  List<Map<String,Object>> findAll() {
        return deptDao.findAll();
    }

    @Override
    public List<Map<String, Object>> showDept() {
        return deptDao.showDept();
    }

    @Override
    public List<Map<String, Object>> showWorkers(Integer did) {
        return deptDao.showWorkers(did);
    }

    @Override
    public void updateDept(Integer userId, Integer deptId) {
        deptDao.updateDept(userId,deptId);
    }


}
